package top.kpromise.user.data;

public class Config {

    public static final int MAX_CREATE_USER_ERROR_TIME = 5;
    public static final int SMS_LEN = 6;
    public static final int minCityLen = 2;
    public static final int passwordLen = 32;
    public static final int minNickNameLen = 1;
    public static final int maxNickNameLen = 16;
    public static final int SMS_TIME_OUT = 300_000;     //  5 分钟内有效
    public static final int TICKET_TIME_OUT = 180_000; //  3 分钟内有效
    public static final String PASSWORD_SALT = "www.kpromise.top";

    public static final class LoginType {
        public static final int PASSWORD = 1;
        public static final int WE_CHAT = 2;
        public static final int QQ = 3;
        public static final int WEI_BO = 4;
    }

    public static final class VerifyCodeType {
        public static final int createAccount = 1;
        public static final int changeLoginPhone = 2;
        public static final int bindNewPhone = 3;
        public static final int changeLoginEmail = 4;
        public static final int bindNewEmail = 5;
        public static final int resetPassword = 6;
    }

    public static final class TicketType {
        public static final int changePhone = 2;
        public static final int changeEmail = 4;
    }

    public static final class VerifyCodeStatus {
        public static final int notExists = 0;
        public static final int right = 1;
        public static final int error = 2;
        public static final int timeout = 3;
    }

    public static final class TemplateCode {
        public final static String createUser = "SMS_123140073";
    }

    public static final class AliYunAccount {
        public final static String regionId = "cn-hangzhou";
        public final static String accessKeyId = "LTAI1JaJrpWiiRET";
        public final static String secret = "rJH5YQSJcRIXC2iwtby0RKhpZ8ZE7g";
        public final static String defaultSignName = "阿里云短信测试专用";
    }
}
